package com.assignwork.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @ClassName WorkArrangeOtherSearchDTO
 * @Description 其他配工作业搜索DTO
 * @Author dujianyu
 * @Date 2023/12/11 14:06
 */
@Data
public class WorkArrangeOtherSearchDTO {

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @ApiModelProperty(value = "计划日期")
    private LocalDate planDate;

    @ApiModelProperty(value = "时间段")
    private String timeSpace;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long machineCorp;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long workerCorp;
}
